package com.example.demo.controller;

import com.example.demo.config.ServerConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by hongzhenyue on 18/2/28.
 */
@RestController
public class ReadConfigController {
    @Autowired
    private ServerConfig config;

    @RequestMapping("/configInfo")
    public String configInfo() {
        return config.getUrl();
    }
}
